package cn.ainit.base.product;


import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ainit.base.product.entity.ProductInfo;
@Service
public class ProductServiceImpl implements ProductService {
	
	private ProductDao productDao;
	@Resource
	public void setProductDao(ProductDao productDao) {
		this.productDao = productDao;
	}
	
	
	@Override
	public boolean saveProduct(ProductInfo productInfo) throws Exception {
		return this.productDao.saveProduct(productInfo);
	}

	@Override
	public boolean updProduct(ProductInfo productInfo) throws Exception {
		return this.productDao.updProduct(productInfo);
	}
	@Override
	public boolean findProduct(String hid) throws Exception {
		return this.productDao.findProduct(hid);
	}
	@Override
	public List xtFindProd(String isbns) throws Exception {
		return this.productDao.xtFindProd(isbns);
	}
	@Override
	public String execProFunc(String proId,String staId,String oid) throws Exception {
		return this.productDao.execProFunc(proId,staId,oid);
	}
}
